package org.numb.model;

import javax.validation.constraints.Pattern;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.hibernate.validator.constraints.Length;

@Getter
@Setter
@ToString
public class Address {

    @Length(max = 64)
    @Pattern(regexp = "^[a-zA-Z]*$")
    private String province;

    @Length(max = 64)
    @Pattern(regexp = "^[a-zA-Z]*$")
    private String city;

    @Length(max = 64)
    @Pattern(regexp = "^[a-zA-Z]*$")
    private String county;

    @Length(max = 64)
    @Pattern(regexp = "^[a-z0-9A-Z ]*$")
    private String street;
}
